<?php
$baseUrl = Yii::app()->baseUrl; 
?>
<table class="display" id="reportsTable" border="0" cellpadding="0"
	cellspacing="1">
	<thead>
		<tr>
			<th class="checkbox  sorting_disabled"><input
				class="selectall_checkbox" type="checkbox"></th>
			<th class="starred js_table_sort sorting_desc">ToDo</th>
			<th class="status js_table_sort sorting">Status</th>
			<th class="reportName js_table_sort sorting">Name</th>
			<th class="cachedTotal js_table_sort sorting">Total</th>
			<th class="accountEmail js_table_sort sorting">From</th>
			<th class="managerEmail js_table_sort sorting">To</th>
			<th class="submitted js_table_sort sorting_desc">Submitted</th>
			<th class="shared js_table_sort sorting">Shared</th>
			<th class="exported js_table_sort sorting">Exported</th>
		</tr>
	</thead>
	<tbody>
	  <?php foreach ($rows as $row):?>
		<tr id="reportsTable_<?php echo $row['ReportId'];?>" class="odd hoverable">
			<td class="checkbox"><input class="reportstable_checkbox" type="checkbox" value="<?php echo $row['ReportId'];?>"></td>
			<td class="js_goToReport starred"><img src="<?php echo $baseUrl;?>/images/star.png"></td>
			<td class="status js_goToReport"><label
				class="filter-state open"><?php echo $row['ReportStatus'];?></label></td>
			<td class="js_goToReport reportName"><a
				href="#report?reportID=3121910"><?php echo $row['ReportName']?></a></td>
			<td class="js_goToReport amount"><?php echo number_format($row['Total'], 2, '.', ',') ; ?></td>
			<td class="js_goToReport"><?php echo $row['FromEmail']; ?></td>
			<td class="js_goToReport"><?php echo $row['ToEmail']; ?></td>
			<td class="js_goToReport">&nbsp;</td>
			<td class="checkmark js_goToReport">&nbsp;</td>
			<td class="checkmark js_goToReport">&nbsp;</td>
		</tr>
		<?php endforeach;?>

	</tbody>
</table>
